#!/usr/bin/env bash

echo "====显示普通字符串===="
echo "It is a test"


ehco "====显示转义字符===="
echo "\"It is a test\""


echo "====显示变量===="
read name
echo "$name It is a test"

echo "====显示换行===="
echo -e "OK! \n" # -e 开启转义
echo "It is a test"

echo "====显示不换行===="
echo -e "OK! \c" # -e 开启转义 \c 不换行
echo "It is a test"

echo "====显示结果定向至文件===="
echo "It is a test" > myfile

echo "====原样输出字符串，不进行转义或取变量(用单引号)===="
echo '$name\"'

echo "====显示命令执行结果===="
echo `date`

